import request from '@/common/ability/request'

/**
 * 隔离点列表
 * @param {*} data
 * @returns
 */
export function IPlist (data = {}) {
  return request.post('/zhddQuarantinePoint/findByPage', data)
}

/**
 * 隔离点新增
 * @param {*} data
 * @returns
 */
export function IPAdd (data = {}) {
  return request.post('/zhddQuarantinePoint/add', data)
}

/**
 * 隔离点修改
 * @param {*} data
 * @returns
 */
export function IPUpdate (data = {}) {
  return request.post('/zhddQuarantinePoint/update', data)
}

/**
 * 隔离点删除
 * @param {*} data
 * @returns
 */
export function IPDelete (data = {}) {
  return request.post('/zhddQuarantinePoint/batchDel', data)
}
/**
 * 隔离点导出
 * @param {*} data
 * @returns
 */
export function IPExport (data = {}) {
  return request.post('/zhddQuarantinePoint/export', data, {
    responseType: 'blob'
  })
}
export function getCurrentUserArea () {
  return request.post('/person/getCurrentUserArea')
}
